.class public final Lnbisdk/fv;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/nbi/common/NBIObject;
.implements Lcom/nbi/common/NBIRequest;


# instance fields
.field private ig:Lnbisdk/ow;

.field private ih:Lnbisdk/kp;

.field private ii:Lnbisdk/bl;


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lnbisdk/v;)V
    .locals 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/fv;->ii:Lnbisdk/bl;

    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/bl;

    iput-object v0, p0, Lnbisdk/fv;->ii:Lnbisdk/bl;

    iget-object v0, p0, Lnbisdk/fv;->ii:Lnbisdk/bl;

    if-eqz v0, :cond_0

    new-instance v0, Lnbisdk/ee;

    invoke-direct {v0, p2}, Lnbisdk/ee;-><init>(Lnbisdk/jy;)V

    invoke-static {}, Lnbisdk/bl;->gR()Lcom/navbuilder/nb/f;

    move-result-object v1

    new-instance v2, Lnbisdk/ql;

    invoke-direct {v2, v0}, Lnbisdk/ql;-><init>(Lnbisdk/mg;)V

    if-nez v2, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Listener cannot be null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-eqz v1, :cond_3

    invoke-virtual {v1}, Lcom/navbuilder/nb/f;->isValid()Z

    move-result v0

    if-nez v0, :cond_4

    :cond_3
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Invalid Context"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    new-instance v0, Lnbisdk/fa;

    invoke-direct {v0, v2}, Lnbisdk/fa;-><init>(Lnbisdk/jy;)V

    iput-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    goto :goto_0
.end method


# virtual methods
.method public final a(Ljava/lang/String;I)V
    .locals 1

    new-instance v0, Lnbisdk/ab;

    invoke-direct {v0, p1, p2}, Lnbisdk/ab;-><init>(Ljava/lang/String;I)V

    invoke-virtual {p0, v0}, Lnbisdk/fv;->a(Lnbisdk/eo;)V

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_0

    new-instance v0, Lnbisdk/ab;

    invoke-direct {v0, p1, p2}, Lnbisdk/ab;-><init>(Ljava/lang/String;I)V

    invoke-static {v0}, Lnbisdk/cq;->a(Lnbisdk/ab;)V

    :cond_0
    return-void
.end method

.method public final a(Lnbisdk/eo;)V
    .locals 1

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    if-nez v0, :cond_1

    new-instance v0, Lnbisdk/kp;

    invoke-direct {v0, p1}, Lnbisdk/kp;-><init>(Lnbisdk/eo;)V

    iput-object v0, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    :cond_1
    iget-object v0, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    invoke-virtual {v0, p1}, Lnbisdk/kp;->b(Lnbisdk/eo;)V

    goto :goto_0
.end method

.method public final cancelRequest()V
    .locals 1

    iget-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    invoke-virtual {v0}, Lnbisdk/ow;->cancelRequest()V

    return-void
.end method

.method public final getInternalObject()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    return-object v0
.end method

.method public final isRequestInProgress()Z
    .locals 1

    iget-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    invoke-virtual {v0}, Lnbisdk/ow;->isRequestInProgress()Z

    move-result v0

    return v0
.end method

.method public final startRequest()V
    .locals 2

    iget-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/fv;->ig:Lnbisdk/ow;

    iget-object v1, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    invoke-virtual {v0, v1}, Lnbisdk/ow;->b(Lnbisdk/kp;)V

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/fv;->ih:Lnbisdk/kp;

    invoke-static {v0}, Lnbisdk/cq;->a(Lnbisdk/kp;)V

    :cond_0
    return-void
.end method
